package com.zhongwang.mms.module.buy.dao;

import com.zhongwang.mms.gen.entity.MMaterials;
import com.zhongwang.mms.gen.entity.MOrderDetail;
import com.zhongwang.mms.module.buy.model.ShoppingPlanModel;
import org.springframework.stereotype.Repository;

import java.util.List;

/**********************************************
 * @title: RawMatReturnDao
 * @description: 原材料回货确认持久层
 * @author: 徐一贺
 * @date: 2020/9/19 8:59
 * @versron: ver 1.0
 **********************************************
 */
@Repository
public interface RawMatReturnDao {
    /**
     * 查询原材料回货列表
     *
     * @param shoppingPlanModel 条件
     * @return list
     */
    List<ShoppingPlanModel> findMaterialReturnList(ShoppingPlanModel shoppingPlanModel);  /**
     * 查询原材料回货列表
     *
     * @param shoppingPlanModel 条件
     * @return list
     */
    Integer findMaterialReturnCount(ShoppingPlanModel shoppingPlanModel);

    /**********************************************
     * @title: getMOrderDetailByPrimaryKey
     * @description: 根据主键获取入库明细
     * @param:
     * @return:
     * @author: 徐一贺
     * @date: 2020/9/19 10:28
     * @versron: ver 1.0
     **********************************************
     */
    MOrderDetail getMOrderDetailByPrimaryKey(Integer odaId);

    /**********************************************
     * @title: getMMaterialsByPrimaryKey
     * @description: 根据主键获取原材料物料表信息
     * @param:
     * @return:
     * @author: 徐一贺
     * @date: 2020/9/19 10:34
     * @versron: ver 1.0
     **********************************************
     */
    MMaterials getMMaterialsByPrimaryKey(Integer odaMatId);
}
